﻿using Kele.Activity.Core;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;

namespace Kele.Activity.Web.Controllers.V1
{
    public partial class FormController : SiteApiController
    {

        [HttpGet("list")]
        public async Task<IActionResult> List()
        {
            var ret = await AppService.Form.GetFormListAsync();
            return OkResult(ret);
        }


        [HttpGet("detail/{id:int}")]
        public async Task<IActionResult> Item(int id)
        {
            var form = await AppService.Form.GetFormAsync(id);
            return OkResult(new { form });
        }


        

    }
}